package src.com.changli.c_switch;

import java.util.Scanner;

public class Demo1Switch {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个值:");
        int a = sc.nextInt();
        switch (a){
            case 1:
                System.out.println("a = " + a);
                break;
            case 2:
                System.out.println("a = " + a);
                break;
            default:
                System.out.println("520");
                break;

        }
    }
}
